<?php
require_once "UtilHash.php";
class UtilKey{
	static function genKey($pattern){
		$str = "";
		if(is_array($pattern)){
			foreach($pattern as $value){
				$str .= $value;
			}
		}else{
			$str = $pattern;
		}
		return UtilHash::sha256( $str ) ;
	}
}
?>